
/*
 * Hlpay-Plus aggregate payment system. Copyright
 * (c) 2022-2023 Hlpay Team Copyright has the right of final interpretation.
 */
package com.hlkj.pay.infrastructure.model.admin;

import com.baomidou.mybatisplus.annotation.TableName;
import com.hlkj.framework.mybatis.core.dataobject.BaseDO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @author HlpayTeam
 * @date 2024/09/03 14:10
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("t_admin_user_behavior_log")
public class AdminUserBehaviorLogDO extends BaseDO {

    private static final long serialVersionUID = 6570347998232429595L;
    /**
     * user_id
     */
    private Long userId;

    /**
     * 日志编号
     */
    private String logCode;

    /**
     * 模块名称
     */
    private String modelName;

    /**
     * 业务名称
     */
    private String businessName;
    /**
     * 业务名称
     */
    private String permissionCode;


    /**
     * 操作类型   0:新增 1:修改 2:删除 3:查询 4:登录  5:登出
     * @see AdminUserEnum.BEHAVIOR_LOG_TYPE
     */
    private Integer operationType;
    
    /**
     * 请求body
     */
    private String params;
    /**
     * 返回
     */
    private String response;
    /**
     * ip
     */
    private String ip;
    /**
     * ip 地址
     */
    private String ipLocation;
    /**
     * 接口地址
     */
    private String requestUrl;
    /**
     * total time
     */
    private Long costTime;
    

}
